home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 January / EnigmA AMIGA RUN 33 (1999)(G.R. Edizioni)(IT)[!][issue 1999-01].iso / earcd / grafica / showamiga96_install / install_showamiga96 < prev    next >
Text File  |  1999-01-01  |  20KB  |  706 lines

  1.  
  2. ;=============================================================================
  3. ; English strings (default)
  4. ;=============================================================================
  5.  
  6.         (set #startupmsg1
  7.             (cat
  8.                 "\n\n\nWelcome to ShowAmiga96 V2.2,          \n"
  9.                 "          the bootpic-viewer Picasso96."
  10.                 "\n\n\n\n\nThis software is subject to the \"Standard Amiga FD-Software Copyright Note\"."
  11.                 "\nIt is MAILWARE as defined in paragraph 4b."
  12.                 "\nFor more information please read "AFD-COPYRIGHT" (Version 1 or higher)."
  13.             )
  14.         )
  15.         (set #startupmsg2
  16.             (cat
  17.                 "\n\n\nIn contrast to ShowAmiga96 V1.x this version will be installed in its own directory. \n\n"
  18.                 "The installer will create an environment variable which points to the installation directory "
  19.                 "(no assign needed).\n\n"
  20.                 "The call of the mainprog will be inserted into Startup-Sequence automatically. The closer "
  21.                 "will be copied into the WBstartup drawer."
  22.             )
  23.         )
  24.         (set #startupmsg22
  25.             (cat
  26.                 "\n\n\nThere is already an (older) Version of ShowAmiga96 2.x installed on your system. \n\n"
  27.                 "The installer will update the program files, your settings and images won´t be changed."
  28.             )
  29.         )
  30.         (set #getpath1    "Select the install directory for ShowAmiga96 V2.2. A drawer called ShowAmiga96 will be created there."
  31.         )
  32.         (set #getpath11 "Please select the ShowAmiga96 drawer to update."
  33.         )
  34.         (set #getpath2    "Please select your WBstartup drawer for the Closer."
  35.         )
  36.         (set #getpath3    "Please select your Prefs drawer for the preferences program."
  37.         )
  38.         (set #copy6    "Which translations should be installed?"
  39.         )
  40.         (set #getdriver
  41.             (cat
  42.                 "To show the bootpic as early as possible, ShowAmiga96 has to start the "
  43.                 "Picasso96-monitordriver by itself.\nPlease select your Picasso96-monitordriver."
  44.             )
  45.         )
  46.         (set #startupmsg3    "\nAdjusting ShowAmiga96 initial prefs..."
  47.         )
  48.         (set #startupmsg4
  49.             (cat
  50.                 "\nThe installation has been completed.\n\nAfter a reset you can enjoy "
  51.                 "your new bootpic. Should you encounter problems, try to find some help "
  52.                 "in the documentation. "
  53.                 "Otherwise don´t hesitate to contact me :-)\n\n"
  54.                 "Heiko Müller\n"
  55.                 "Ernst-Reuter-Str. 8\n"
  56.                 "31275 Lehrte\n"
  57.                 "Germany\n\n"
  58.                 "hmueller@online.de"
  59.             )
  60.         )
  61.         (set #nodriver1    "\nThe specified file \""
  62.         )
  63.         (set #nodriver2    "\" doesn´t exist! Please select an existing file."
  64.         )
  65.         (set #startupmsg6
  66.             (cat
  67.                 "\nThe installer inserts the ShowAmiga96-call into the startup-sequence. "
  68.                 "A backup file called \"Startup-Sequence.SA96\" will be created in S:.\n\n"
  69.                 "If necessary, you can edit the startup-sequence yourself later, but "
  70.                 "please read the documentation!!!"
  71.             )
  72.         )
  73.         (set #startupmsg7    "\nRunning prefs program..."
  74.         )
  75.         (set #startupmsg8
  76.             (cat
  77.                 "\nThe installer will search for the old call of ShowAmiga96 and will remove it from startup-sequence."
  78.                 "Also the old closer will be deleted from the wbstartup-drawer.\n\n"
  79.                 "If you changed the calls of ShowAmiga96 and/or of the closer, you probably "
  80.                 "have to remove the old yourself."
  81.             )
  82.         )
  83.         (set #startupmsg9
  84.             (cat
  85.                 "\nThe old ShowAmiga96-call has been removed from startup-sequence, but the installer was "
  86.                 "unable to delete the closer (ShowAmiga96_Close) from the WBstartup-drawer.\n\n"
  87.                 "Please remove the old closer yourself or replace it with the new one."
  88.             )
  89.         )
  90.         (set #help1
  91.             (cat
  92.                 "\nThe ShowAmiga96 directory contains no user accessable files.\n\n"
  93.                 "So it needn´t be placed in Utilities, you can hide it somewhere else.\n\n"
  94.                 "A directory called ´ShowAmiga96´ will be created by the installer."
  95.             )
  96.         )
  97.         (set #help11
  98.             (cat
  99.                 "\nThe installer suggests the directory of the old installation.\n"
  100.                 "The installer will update the old files in this directory und in the subdirs."
  101.             )
  102.         )
  103.         (set #help2
  104.             (cat
  105.                 "\nThe closer must be called at the end of the boot process.\n\n"
  106.                 "This normally happens in the WBstartup drawer."
  107.             )
  108.         )
  109.         (set #help3
  110.             (cat
  111.                 "\nThe prefs programm is used to control the complete behavior of ShowAmiga96.\n\n"
  112.                 "The best place is the prefs drawer."
  113.             )
  114.         )
  115.         (set #help6
  116.             (cat
  117.                 "\nShowAmiga96 opens its screen before the monitor drivers from DEVS:Monitors are loaded. "
  118.                 "That´s the reason why ShowAmiga96 has to start the Picasso96-driver itself, all other "
  119.                 "monitordrivers are loaded a bit later. To pick the correct P96-driver, the installer "
  120.                 "needs your help."
  121.             )
  122.         )
  123.         (set #help7
  124.             (cat
  125.                 "\nNormally, ShowAmiga96 is launched directly after the command ´SetPatch´ in the Startup-Sequence. The installer "
  126.                 "is able the insert the call itself.\nIf you have changed your Startup-Sequence or if you use more than one, "
  127.                 "you may skip this part and enter the call yourself later. "
  128.                 "You will find a description how to do this in the documentation (page Installation)."
  129.             )
  130.         )
  131.         (set #help9
  132.             (cat
  133.                 "No help available."
  134.             )
  135.         )
  136.         (set #warn1
  137.             (cat
  138.                 "\nWarning!\n\n"
  139.                 "ShowAmiga96 requires at least Picasso96 V1.40\n"
  140.                 "You use an older version which could lead to\n"
  141.                 "problems."
  142.             )
  143.         )
  144.         (set #warn2
  145.             (cat
  146.                 "\nAttention!\n\n\n"
  147.                 "Please do not remove ShowAmiga96_Close from your WBstartup drawer or make sure that you launch it "
  148.                 "from somewhere else.\n\nShowAmiga96 needs the program to react on the WBstartup close condition AND "
  149.                 "to display errors that occured while booting."
  150.             )
  151.         )
  152.         (set #nohelp "No help available.")
  153.  
  154.  
  155.  
  156.  
  157. ;=============================================================================
  158. ; German strings
  159. ;=============================================================================
  160.  
  161. (if
  162.     (= @language "deutsch")
  163.     (
  164.         (set #startupmsg1
  165.             (cat
  166.                 "\n\n\nWillkommen zu ShowAmiga96 V2.2,          \n"
  167.                 "          dem Bootbild-Anzeiger für Picasso96."
  168.                 "\n\n\n\n\nDiese Software unterliegt der \"Standard Amiga FD-Software Copyright Note\"."
  169.                 "\nSie ist MAILWARE wie definiert in Absatz 4b."
  170.                 "\nFür mehr Informationen lies bitte "AFD-COPYRIGHT" (Version 1 oder höher)."
  171.             )
  172.         )
  173.         (set #startupmsg2
  174.             (cat
  175.                 "\n\n\nIm Gegensatz zu ShowAmiga96 V1.x wird diese Version in einem eigenen Verzeichnis installiert. \n\n"
  176.                 "Um auf ein ASSIGN zu verzichten, legt das Install-Script eine ENV-Variable an, die auf "
  177.                 "das Installationsverzeichnis verweist.\n\n"
  178.                 "Der Aufruf des Programms kann wie bisher automatisch in die Startup-Sequence eingetragen werden lassen, das "
  179.                 "Schließprogramm wird ins WBStartup-Verzeichnis kopiert."
  180.             )
  181.         )
  182.         (set #startupmsg22
  183.             (cat
  184.                 "\n\n\nEs ist bereits eine (ältere) Version von ShowAmiga96 V2.x auf Ihrem System vorhanden.\n\n"
  185.                 "Der Installer wird nur die Programmdateien austauschen, die Einstellungen und Bilder bleiben erhalten"
  186.             )
  187.         )
  188.         (set #getpath1    "Bitte wählen Sie den Installationsort für ShowAmiga96 V2.2 aus. Ein Verzeichnis namens ShowAmiga96 wird automatisch erstellt."
  189.         )
  190.         (set #getpath11 "Bitte geben Sie das Verzeichnis an, in dem das Update durchgeführt werden soll."
  191.         )
  192.         (set #getpath2    "Bitte wählen Sie Ihr WBStartup-Verzeichnis für das Schließprogramm aus."
  193.         )
  194.         (set #getpath3    "Bitte wählen Sie Ihr Prefs-Verzeichnis für das Einstellungsprogramm aus."
  195.         )
  196.         (set #copy6    "Welche Übersetzungen kopieren?"
  197.         )
  198.         (set #getdriver
  199.             (cat
  200.                 "ShowAmiga96 startet den Picasso96-Monitortreiber unabhängig von den übrigen Treibern. "
  201.                 "Wählen Sie bitte Ihren P96-Monitortreiber aus."
  202.             )
  203.         )
  204.         (set #startupmsg3    "\nPasse ShowAmiga96-Grundeinstellungen an..."
  205.         )
  206.         (set #startupmsg4
  207.             (cat
  208.                 "\nDie Installation ist jetzt abgeschlossen.\n\nNach einem Neustart können "
  209.                 "Sie sich an Ihrem neuen Bootbild erfreuen. Sollten Probleme auftreten, "
  210.                 "so mag ein Blick in die Anleitung sicherlich hilfreich sein. "
  211.                 "Ansonsten bin ich ja auch noch da ;-)\n\n"
  212.                 "Heiko Müller\n"
  213.                 "Ernst-Reuter-Str. 8\n"
  214.                 "31275 Lehrte\n\n"
  215.                 "hmueller@online.de"
  216.             )
  217.         )
  218.         (set #nodriver1    "\nDie angegebene Datei \""
  219.         )
  220.         (set #nodriver2    "\" existiert nicht! Wählen Sie bitte eine vorhandene Datei."
  221.         )
  222.         (set #startupmsg6
  223.             (cat
  224.                 "\nDas Installationsprogramm fügt jetzt den ShowAmiga96-Aufruf in die "
  225.                 "Startup-Sequence ein. Eine Sicherungskopie wird unter dem Namen "
  226.                 "\"Startup-Sequence.SA96\" in S: angelegt.\n\n"
  227.                 "Wenn Sie wollen, können Sie die Änderung später auch von Hand vornehmen, "
  228.                 "aber dabei unbedingt die Anleitung beachten!!!"
  229.             )
  230.         )
  231.         (set #startupmsg7    "\nStarte Einstellungsprogramm..."
  232.         )
  233.         (set #startupmsg8
  234.             (cat
  235.                 "\nDas Installationsprogramm prüft jetzt, ob eine alte Version von ShowAmiga96 in der Startup-Sequence aufgerufen wird. "
  236.                 "Dieser Aufruf wird nicht mehr benötigt und auskommentiert.\n\nWeiterhin wird versucht, das alte Schließprogramm (ShowAmiga96_Close) aus der "
  237.                 "WBstartup-Schublade zu löschen."
  238.             )
  239.         )
  240.         (set #startupmsg9
  241.             (cat
  242.                 "\nDer alte ShowAmiga96-Aufruf wurde aus der Startup-Sequence entfernt, das Schließprogramm "
  243.                 "konnte jedoch nicht gelöscht werden.\n\n"
  244.                 "Bitte entfernen Sie vor dem nächsten Neustart den alten Aufruf von ShowAmiga96_Close per Hand, falls Sie "
  245.                 "das Programm nicht bereits mit der neuen Version überschrieben haben."
  246.             )
  247.         )
  248.         (set #help1
  249.             (cat
  250.                 "\nDas ShowAmiga96-Verzeichnis enthält keine Dateien, auf die der User direkten Zugriff haben muß.\n\n"
  251.                 "Es muß also nicht unbedingt in Utilities liegen, sondern kann auch irgendwo ´versteckt´ werden.\n\n"
  252.                 "Ein Verzeichnis namens ´ShowAmiga96´ wird automatisch vom Installer angelegt."
  253.             )
  254.         )
  255.         (set #help11
  256.             (cat
  257.                 "\nDer Installer schlägt automatisch das Verzeichnis der aktuellen ShowAmiga96-Installation vor.\n"
  258.                 "In diesem und den Unterverzeichnissen werden die veralteten Programmdateien ausgetauscht."
  259.             )
  260.         )
  261.         (set #help2
  262.             (cat
  263.                 "\nDas Schließprogramm muß unbedingt am Ende des Bootvorgangs gestartet werden.\n\n"
  264.                 "Standardmäßig wird es in das WBStartup-Verzeichnis kopiert und mit der niedrigsten STARTPRI aufgerufen."
  265.             )
  266.         )
  267.         (set #help3
  268.             (cat
  269.                 "\nMit dem Prefs-Programm wird das gesamte Verhalten von ShowAmiga96 kontrolliert.\n\n"
  270.                 "Die Prefs-Schublade der Workbench ist der geeignete Platz für die Installation."
  271.             )
  272.         )
  273.         (set #help6
  274.             (cat
  275.                 "\nDamit ShowAmiga96 seinen Bildschirm schon zu Beginn der Startup-Sequence öffnen kann, "
  276.                 "muß es den Picasso96-Treiber zuvor selbst starten. Alle übrigen "
  277.                 "werden ganz normal etwas später aktiviert.\nUm aus der Vielzahl der möglichen P96-Monitor"
  278.                 "treiber den richtigen herauszufinden, ist der Installer auf Ihre Hilfe angewiesen."
  279.             )
  280.         )
  281.         (set #help7
  282.             (cat
  283.                 "\nFür gewöhnlich wird ShowAmiga96 am direkt nach dem Befehl "SetPatch" in der Startup-Sequence gestartet. Der Installer "
  284.                 "kann den Aufruf selbst in die Datei eintragen.\nWenn Sie Ihre Startup-Sequence stark verändert "
  285.                 "haben oder ShowAmiga96 an einer anderen Stelle starten wollen, können Sie diesen Teil überspringen "
  286.                 "und später nach Anleitung den Aufruf per Hand eintragen."
  287.             )
  288.         )
  289.         (set #help8
  290.             (cat
  291.                 "\nDer Installer kann den alten Aufruf von ShowAmiga96 in der Startup-Sequence finden und auskommentieren. "
  292.                 "\nWenn Sie dies per Hand machen wollen, denken Sie bitte daran, ggf. auch den Aufruf für das alte Schließprogramm zu "
  293.                 "entfernen, falls es sich nicht in WBstartup befindet und automatisch überschrieben wird."
  294.             )
  295.         )
  296.         (set #help9
  297.             (cat
  298.                 "\nVoreinstellungsmäßig wurde das alte Schließprogramm in die WBstartup-Schublade kopiert. "
  299.                 "Bei Bedarf könnte es aber auch an einem anderen Ort installiert werden und der Aufruf "
  300.                 "beispielsweise aus einem Skript erfolgen.\n\n"
  301.                 "Der Installer hat das Schließprogramm nicht in der WBstartup-Schublade gefunden, so daß Sie "
  302.                 "den abgeänderten Aufruf per Hand entfernen müssen.\n\n"
  303.                 "AUSNAHME: Das alte Schließprogramm wurde durch das neue überschrieben. In diesem Fall "
  304.                 "kann alles unverändert bleiben."
  305.             )
  306.         )
  307.         (set #warn1
  308.             (cat
  309.                 "\nWarnung!\n\n"
  310.                 "ShowAmiga96 benötigt mindestens Picasso96 V1.40\n"
  311.                 "Sie benutzen eine ältere Version, mit der es\n"
  312.                 "Probleme geben könnte."
  313.             )
  314.         )
  315.         (set #warn2
  316.             (cat
  317.                 "\nAchtung!\n\n\n"
  318.                 "Bitte entfernen Sie ShowAmiga96_Close nicht aus Ihrer WBstartup-Schublade oder stellen Sie sicher, daß das "
  319.                 "Programm nach dem Booten auf andere Weise gestartet wird.\n\nShowAmiga96 verwendet es neben dem Setzen der "
  320.                 "WBstartup-Schließbedingung auch zum Anzeigen von Fehlern, die während des Bootvorgangs aufgetreten sind."
  321.             )
  322.         )
  323.         (set #nohelp "Keine Hilfe verfügbar")
  324.     )
  325. )
  326.  
  327.  
  328.  
  329.  
  330. ;=============================================================================
  331. ; Defaults einstellen
  332. ;=============================================================================
  333.  
  334. (set #oldpath (getenv("SHOWAMIGA96")))
  335. (set #mainpath "Sys:Utilities/")
  336. (set #closepath "Sys:WBstartup/")
  337. (set #prefspath "Sys:Prefs/")
  338. (set #driverpath "DEVS:Monitors/")
  339. (set #localepath "Sys:Locale/Catalogs/")
  340. (set #editsseq "bin/editsseq ")
  341. (set #checkexist "bin/checkexist")
  342. (set #remold "bin/remold ")
  343. (set #saveenvarc "bin/saveenvarc ")
  344.  
  345.  
  346. ;=============================================================================
  347. ; Los geht´s
  348. ;=============================================================================
  349.  
  350. (complete 0)
  351. (message    #startupmsg1
  352.     (all)
  353. )
  354.  
  355. (set #vernum (getversion "LIBS:Picasso96API.library"))
  356.  
  357. (if(< #vernum 131340)
  358.     (
  359.         (message    #warn1
  360.             (all)
  361.         )
  362.     )
  363. )
  364.  
  365. (if(<>(#oldpath)(""))
  366.     (
  367.         (set #mainpath #oldpath)
  368.         (message    #startupmsg22
  369.             (all)
  370.         )
  371.         (welcome)
  372.         (set #mainpath
  373.             (askdir    (prompt    #getpath11)
  374.                 (help    #help11)
  375.                 (default    #mainpath)
  376.             )
  377.         )
  378.     )
  379.     (
  380.         (message    #startupmsg2
  381.             (all)
  382.         )
  383.         (welcome)
  384.         (set #mainpath
  385.             (askdir    (prompt    #getpath1)
  386.                 (help    #help1)
  387.                 (default    #mainpath)
  388.             )
  389.         )
  390.         (set #mainpath (tackon #mainpath "ShowAmiga96"))
  391.     )
  392. )
  393.  
  394.  
  395. ;=============================================================================
  396. ; Installationspfade einholen
  397. ;=============================================================================
  398.  
  399. (complete 5)
  400. (set #closepath
  401.     (askdir    (prompt    #getpath2)
  402.         (help    #help2)
  403.         (default    #closepath)
  404.     )
  405. )
  406. (message    #warn2
  407.     (all)
  408. )
  409.  
  410. (complete 10)
  411. (set #prefspath
  412.     (askdir    (prompt    #getpath3)
  413.         (help    #help3)
  414.         (default    #prefspath)
  415.     )
  416. )
  417.  
  418.  
  419. ;=============================================================================
  420. ; Kataloge kopieren
  421. ;=============================================================================
  422.  
  423. (complete 15)
  424. (copyfiles
  425.     (source    "Locale/Catalogs")
  426.     (prompt    #copy6)
  427.     (help    #nohelp)
  428.     (dest    #localepath)
  429.     (confirm)
  430.     (all)
  431. )
  432.  
  433.  
  434. ;=============================================================================
  435. ; bei Firstinstall nach Monitortreibernamen fragen und Startup-Sequence ändern
  436. ;=============================================================================
  437.  
  438. (complete 20)
  439. (if(<>(#oldpath)(#mainpath))
  440.     (
  441.         (while (OR (= (fileonly(#driverpath)) "") (NOT #driverok))
  442.             (
  443.                 (set #driverpath
  444.                     (askfile    (prompt    #getdriver)
  445.                         (help    #help6)
  446.                         (default    #driverpath)
  447.                     )
  448.                 )
  449.                 (set #driverok (exists #driverpath (noreq)))
  450.                 (if (NOT #driverok)
  451.                     (message    (cat #nodriver1 #driverpath #nodriver2) (all))
  452.                 )
  453.             )
  454.         )
  455.  
  456.         (run #remold
  457.             (prompt    #startupmsg8)
  458.             (help    #help8)
  459.             (confirm)
  460.         )
  461.         (if(=(exists "env:killedoldsa96" (noreq)) 1)
  462.             (
  463.                 (delete "env:killedoldsa96" (safe))
  464.                 (if (= (exists "sys:wbstartup/showamiga96_close" (noreq)) 1)
  465.                     (delete "sys:wbstartup/showamiga96_close" (infos))
  466.                     (message    #startupmsg9
  467.                         (help    #nohelp)
  468.                         (all)
  469.                     )
  470.                 )
  471.             )
  472.         )
  473.     )
  474. )
  475.  
  476.  
  477. ;=============================================================================
  478. ; ENVs erstellen
  479. ;=============================================================================
  480.  
  481. (complete 25)
  482. (textfile
  483.     (dest    "ENV:SHOWAMIGA96")
  484.     (append    #mainpath)
  485. )
  486. (complete 27)
  487. (textfile
  488.     (dest    "ENVARC:SHOWAMIGA96")
  489.     (append    #mainpath)
  490. )
  491.  
  492.  
  493. ;=============================================================================
  494. ; Verzeichnis erstellen
  495. ;=============================================================================
  496.  
  497. (complete 29)
  498. (if(<>(#oldpath)(#mainpath))
  499.     (
  500.         (makedir #mainpath
  501.             (infos)
  502.         )
  503.     )
  504. )
  505.  
  506.  
  507. ;=============================================================================
  508. ; Bin kopieren
  509. ;=============================================================================
  510.  
  511. (complete 30)
  512. (set #binpath (tackon #mainpath "Bin"))
  513. (copyfiles
  514.     (source    "Bin")
  515.     (prompt    #copy1)
  516.     (help    #nohelp)
  517.     (dest    #binpath)
  518.     (all)
  519. )
  520.  
  521.  
  522. ;=============================================================================
  523. ; Module kopieren
  524. ;=============================================================================
  525.  
  526. (complete 55)
  527. (set #modpath (tackon #mainpath "Modules"))
  528. (copyfiles
  529.     (source    "Modules")
  530.     (help    #nohelp)
  531.     (dest    #modpath)
  532.     (all)
  533. )
  534.  
  535.  
  536. ;=============================================================================
  537. ; Anleitungen kopieren
  538. ;=============================================================================
  539.  
  540. (complete 63)
  541. (set #dokupath (tackon #mainpath "Docs"))
  542. (copyfiles
  543.     (source    "Docs")
  544.     (help    #nohelp)
  545.     (dest    #dokupath)
  546.     (all)
  547. )
  548.  
  549.  
  550. ;=============================================================================
  551. ; Images kopieren
  552. ;=============================================================================
  553.  
  554. (complete 65)
  555. (if(<>(#oldpath)(#mainpath))
  556.     (
  557.         (set #imgpath (tackon #mainpath "Images"))
  558.         (copyfiles
  559.             (source    "Images")
  560.             (help    #nohelp)
  561.             (dest    #imgpath)
  562.             (all)
  563.         )
  564.     )
  565. )
  566.  
  567.  
  568. ;=============================================================================
  569. ; Rest kopieren und Prefs anpassen
  570. ;=============================================================================
  571.  
  572. (complete 80)
  573. (if(<>(#oldpath)(#mainpath))
  574.     (
  575.         (copyfiles
  576.             (source    "")
  577.             (choices    ".order" ".prefs" ".sa96id")
  578.             (dest    #mainpath)
  579.         )
  580.  
  581.         (set #prefsini (cat "bin/setprefs " #driverpath))
  582.         (complete 82)
  583.         (working    #startupmsg3)
  584.         (run #prefsini
  585.             (prompt    #startupmsg3)
  586.         )
  587.     )
  588. )
  589.  
  590. (set #saveenvarc (cat "bin/saveenvarc " (expandpath "ENVARC:") " " (tackon #binpath "ShowAmiga96_Rev208711")))
  591. (run #saveenvarc
  592.     (prompt    #startupmsg3)
  593. )
  594.  
  595.  
  596. (set #closefile (tackon #closepath "ShowAmiga96_Close"))
  597. (set #iconposx -1)
  598. (set #iconposy -1)
  599. (iconinfo
  600.     (dest #closefile)
  601.     (getposition "#iconposx" "#iconposy")
  602. )
  603.  
  604. (copyfiles
  605.     (source    "WBStartup/ShowAmiga96_Close")
  606.     (help    #nohelp)
  607.     (infos)
  608.     (noposition)
  609.     (dest    #closepath)
  610. )
  611.  
  612. (tooltype
  613.     (dest #closefile)
  614.     (setposition #iconposx #iconposy)
  615. )
  616.  
  617. (complete 85)
  618.  
  619. (set #prefsfile (tackon #prefspath "ShowAmiga96_Prefs"))
  620. (set #defpicturedir "")
  621. (set #iconposx -1)
  622. (set #iconposy -1)
  623. (iconinfo
  624.     (dest #prefsfile)
  625.     (gettooltype "DEFPICTUREDIR" "#defpicturedir")
  626. )
  627. (iconinfo
  628.     (dest #prefsfile)
  629.     (getposition "#iconposx" "#iconposy")
  630. )
  631.  
  632. (copyfiles
  633.     (source    "Prefs/ShowAmiga96_Prefs")
  634.     (help    #nohelp)
  635.     (noposition)
  636.     (infos)
  637.     (dest    #prefspath)
  638. )
  639.  
  640.  
  641. (if(<> #defpicturedir "")
  642.     (
  643.         (tooltype
  644.             (dest #prefsfile)
  645.             (settooltype "DEFPICTUREDIR" #defpicturedir)
  646.         )
  647.     )
  648.     (
  649.         (tooltype
  650.             (dest #prefsfile)
  651.             (settooltype "(DEFPICTUREDIR" "<Bildquelldateiverzeichnis>)")
  652.         )
  653.     )
  654. )
  655.  
  656. (tooltype
  657.     (dest #prefsfile)
  658.     (setposition #iconposx #iconposy)
  659. )
  660.  
  661.  
  662.  
  663. ;=============================================================================
  664. ; ShowAmiga96 in Startup-sequence eintragen
  665. ;=============================================================================
  666.  
  667. (complete 90)
  668.  
  669. (run #checkexist)
  670.  
  671. (if(=(exists "env:sa96notexists" (noreq)) 1)
  672.     (
  673.         (delete "env:sa96notexists" (safe))
  674.         (set #binpath (tackon #binpath "ShowAmiga96_Rev208711"))
  675.         (set #editsseq (cat #editsseq #binpath))
  676.         (run #editsseq
  677.             (prompt    #startupmsg6)
  678.             (help    #help7)
  679.             (confirm)
  680.         )
  681.     )
  682. )
  683.  
  684.  
  685.  
  686. ;=============================================================================
  687. ; Prefs starten und Installation verlassen
  688. ;=============================================================================
  689.  
  690. (complete 100)
  691. (message    #startupmsg4
  692.     (all)
  693. )
  694.  
  695. (if(<>(#oldpath)(#mainpath))
  696.     (
  697.         (set #prefspath (tackon #prefspath "ShowAmiga96_Prefs"))
  698.         (set #prefspath (cat "run >nil: " #prefspath))
  699.         (run #prefspath 
  700.             (prompt    #startupmsg7)
  701.         )
  702.     )
  703. )
  704.  
  705. (exit (quiet))
  706.